#include<bits/stdc++.h>
using namespace std;
int main()
{
    freopen("color.in","r",stdin);
    freopen("color.out","w",stdout);
    int t;
    cin>>t;
    int q;
    int a[100];
    for(int i=0;i<t;i++)
    {
        cin>>q;
        for(int i=0;i<q;i++)
        {
            cin>>a[i];
        }
    }
    int z=1;
    int x=0;
    int c=8;
    cout<<z<<endl<<x<<endl<<c;
    return 0;
}
